package com.liuwei.consultant.service.impl;

import com.liuwei.consultant.mapper.ReservationMapper;
import com.liuwei.consultant.pojo.Reservation;
import com.liuwei.consultant.service.ReservationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ReservationServiceImpl implements ReservationService {

    @Autowired
    private ReservationMapper reservationMapper;

    @Override
    public void insert(Reservation reservation) {
        reservationMapper.insert(reservation);
    }

    @Override
    public Reservation findByPhone(String phone) {
        return reservationMapper.findByPhone(phone);
    }
}
